! function() {
    var view = document.getElementsByClassName('menuTrigger')

    var controller = {
        view: null,
        init: function(view) {
            this.view = view
            this.bindEvents()
        },
        bindEvents: function() {
            for (let i = 0; i < view.length; i++) {
                view[i].onmouseenter = function(e) {
                    e.currentTarget.classList.add('active')
                }
                view[i].onmouseleave = function(e) {
                    e.currentTarget.classList.remove('active')
                }
            }
        },
    }

    controller.init(view)
}.call()